package com.liu.demo1.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author liusiyu
 * @ClassName HelloController
 * @date 2021年10月28日 14:16
 */

@RestController
public class HelloController {

    @Value("${name1}")
    private String name;

    @Value("${age1}")
    private String age;

    @RequestMapping("/hello")
    public String HelloWorld(){
        return "Hello World " + name + age;
    }
}
